home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Code / Chapter08 / rotatemove.S3D < prev    next >
Text File  |  2000-06-30  |  2KB  |  82 lines

  1. Background {
  2.     color 0.8353 1 0.9569
  3. }
  4. DEF groundplane Transform {
  5.     translation 0 0 0
  6.     children [
  7.         Shape {
  8.             appearance [
  9.                 MultiAppearance {
  10.                     material Material {
  11.                         diffuseColor 0.6667 0.9412 0.1922
  12.                         specularColor 0.045 0.045 0.045
  13.                         shininess 0.25
  14.                         transparency 0
  15.                     }
  16.                 }
  17.             ]
  18.             geometry MultiMesh {
  19.                 defaultFlatShaded FALSE
  20.                 coord DEF groundplane-COORD Coordinate {
  21.                     point [
  22.                         150 0 -150 -150 0 -150 -150 0 150 150 0 150
  23.                     ]
  24.                 }
  25.                 coordIndex [
  26.                     2 3 0 -1 1 2 0 -1
  27.                 ]
  28.                 textureMappings [
  29.                 ]
  30.             }
  31.         }
  32.     ]
  33. }
  34. DEF vehicle Transform {
  35.     translation 0 0 100
  36.     children [
  37.         Shape {
  38.             appearance [
  39.                 MultiAppearance {
  40.                     material Material {
  41.                         diffuseColor 0.9882 0.3569 0.4902
  42.                         specularColor 0.045 0.045 0.045
  43.                         shininess 0.25
  44.                         transparency 0
  45.                     }
  46.                 }
  47.             ]
  48.             geometry MultiMesh {
  49.                 coord DEF vehicle-COORD Coordinate {
  50.                     point [
  51.                         -12.53 0 19.76 12.53 0 19.76 0 0 -19.76 -12.53 11.94 19.76 12.53 11.94 19.76 0 11.94 -19.76
  52.                     ]
  53.                 }
  54.                 coordIndex [
  55.                     2 1 0 -1 3 4 5 -1 0 1 4 -1 4 3 0 -1 1 2 5 -1 5 4 1 -1 2 0 3 -1 3 5 2 -1
  56.                 ]
  57.                 smoothingIndex [
  58.                     2 -1 3 -1 4 -1 4 -1 5 -1 5 -1 7 -1 7 -1
  59.                 ]
  60.                 appearanceIndex [
  61.                     1 0 4 4 3 3 2 2
  62.                 ]
  63.                 textureMappings [
  64.                 ]
  65.             }
  66.         }
  67.     ]
  68. }
  69. DEF FDirect01-LIGHT DirectionalLight {
  70.     affectedGroups "#Root"
  71.     intensity 1
  72.     color 1 1 1
  73.     direction 0 -0.9239 -0.3827
  74.     on TRUE
  75. }
  76. DEF Camera01 Viewpoint{
  77.     position -0.9639 292.9 374.4
  78.     orientation 1 0 0 -0.672
  79.     fieldOfView 0.6024
  80.     description "Camera01"
  81. }
  82.